const Koa = require('Koa')
const app = new Koa()

// 2.绑定中间件
const resDurationMiddleware = require('./middleware/koa_response_duration')

app.use(resDurationMiddleware)

const resHeaderMiddleware = require('./middleware/koa_response_header')

app.use(resHeaderMiddleware)

const resDataMiddleware = require('./middleware/koa_response_data')

app.use(resDataMiddleware)

app.listen(8888)

const webSocketServeice = require('./service/web_socket_service')
webSocketServeice.listen()

